from django import forms
from django.utils.timezone import now
from django.forms import ModelForm
from django.contrib.auth.models import User



class NewUser(ModelForm):
    class Meta:
        model = User
        fields = '__all__'
        error_messages = {
            'username': {'required': 'cannot be void'},
            'password': {'required': 'cannot be void'},
            'first_name': {'required': 'cannot be void'},
            'last_name': {'required': 'cannot be void'},
            'email': {'required': 'cannot be void'},
        }